<?php

/**
 * @file
 * Theme settings .
 */

function solveto_theme_settings_skin(&$form, &$form_state) {
    global $base_url;
    $theme_path = drupal_get_path('theme','solveto');
    $form['solveto_settings']['design'] = array(
        '#type' 					=> 'fieldset',
        '#weight' 				=> -4,
        '#prefix'  				=> '<div id="sf-skin" class="">',
        '#suffix'        => '</div><!-- / #sf-skin -->',
    );
    $form['solveto_settings']['design']['design_skin'] = array(
        '#type' 					=> 'fieldset',
        '#weight' 				=> 1,
        '#prefix' => '      <div class="widget widget-setting">
                                <div class="title">
                                    <img src="'.$base_url.'/'.$theme_path.'/img/theme-settings/images/icons/dark/preview.png" alt="" class="titleIcon">
                                    <h6>Skin Settings</h6>
                                </div>
                                ',
        '#suffix'       => '</div>',
    );
    /* ================================================================================
    ================================= Skins ===========================================
    ==================================================================================*/
    $form['solveto_settings']['design']['design_skin']['skins'] = array(
        '#type'          => 'select',
        '#default_value' => theme_get_setting('skins'),
        '#options'       => array(
            'default'   => t('Default'),
            'beige'   => t('beige'),
            'blue' 	=> t('blue'),
            'brown' 	    => t('brown'),
            'gold' 	=> t('gold'),
            'oliver' 	=> t('oliver'),
            'purple' 	=> t('purple'),
            'red' 	=> t('red'),
            'teal' 	=> t('teal'),
            'custom'    => t('Custom')
        ),
        '#prefix'   =>  '<div class="formRow"><label>Choose skin</label>',
        '#suffix'   => '</div>',
        '#field_prefix' => '<div class="formRight">',
        '#field_suffix' => '</div>',

    );
    $form['solveto_settings']['design']['design_skin']['custom_skin'] = array(
        '#type' => 'container',
        '#states' => array(
            // Hide the logo settings when using the default logo.
            'visible' => array(
                ':input[name="skins"]' => array('value' => 'custom'),
            ),
        ),
    );
    $form['solveto_settings']['design']['design_skin']['custom_skin']['skin_colorpicker'] = array(
        '#type'                 => 'textfield',
        '#default_value'        => theme_get_setting('skin_colorpicker'),
        '#attributes'           => array(
            'class'             =>  array('form-colorpicker')
        ),
        '#prefix'   =>  '<div class="formRow"><label>Custom skin with colorpicker</label>',
        '#suffix'   => '</div>',
        '#field_prefix' => '<div class="formRight">',
        '#field_suffix' => '</div>',
    );
}